
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.JPanel;

class mainPanel1 extends JPanel
{
  Board b;
  int breite;
  int hohe;

  mainPanel1(int b, int h, CAHClient client)
  {
    this.breite = b;
    this.hohe = h;
    this.b = new Board(b, h, this, client);
    paintingThread pT = new paintingThread(this);
    pT.start();
  }

  public void paintComponent(Graphics g)
  {
    super.paintComponent(g);
    super.paintComponent(g);
    Graphics2D g2d = (Graphics2D)g;
    g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    this.b.paintMyPanel(g2d);
  }

  public void paint(Graphics g)
  {
    super.paint(g);
  }
}
